<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String uploadDir = request.getSession().getServletContext().getRealPath("/upload");
%>
<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta charset="UTF-8">
		<title>文件上传</title>

		<link rel="stylesheet" type="text/css" href="<%=basePath %>resources/bootstrap/css/bootstrap-responsive.css">
		<link rel="stylesheet" type="text/css" href="<%=basePath %>resources/bootstrap/css/bootstrap.css">
		<link rel="stylesheet" type="text/css" href="<%=basePath %>resources/css/basic.css">
		<link rel="stylesheet" type="text/css" href="<%=basePath %>resources/css/file_upload.css">

		<script type="text/javascript" src="${basePath}resources/js/common/base.js"></script>
		<script type="text/javascript" src="${basePath}resources/js/common/jquery-3.2.1.min.js"></script>
		<script type="text/javascript" src="<%=basePath %>resources/bootstrap/js/bootstrap.js"></script>
		<script type="text/javascript" src="<%=basePath %>resources/angular-1.3.0/angular.min.js"></script>
		<script type="text/javascript" src="<%=basePath %>resources/js/file_upload.js"></script>
	</head>
	<body ng-app="myApp" ng-controller="fileUploadController">
		<div id="header">
			<%@ include file="common/header.jsp" %>
			<h1>文件上传</h1>
			<%=basePath %>
			<img alt="上传的图片" width="100px" height="100px" src="<%=basePath %>resources/upload/1001.png">
		</div>
		<div id="container">
			<form method="post" action="back_upload" enctype="multipart/form-data">
				<p>
					<label class="label label-length" for="image">文件</label>
					<input type="file" name="image" ng-model="image" />
				</p>
				<p>
					<input type="submit" class="btn btn-primary" name="uploadBtn" id="uploadBtn" value="上传"  ng-disabled="1==2"/>
				</p>
			</form>
		</div>
		<div id="footer">
			<%@ include file="common/footer.jsp" %>
		</div>
	</body>
</html>